package biz.datalk.industrialland.admin.modules.system.service;

import biz.datalk.industrialland.admin.modules.system.pojo.dto.SysRoleDTO;
import biz.datalk.industrialland.common.result.UnifyResult;
import biz.datalk.industrialland.mbg.pojo.po.SysRole;

import java.util.List;

/**
 * @author tarofang@163.com
 * @date 2019-08-19
 */
public interface ISysRoleService {
    UnifyResult list(SysRoleDTO sysRoleDTO);

    UnifyResult addRole(SysRoleDTO sysRoleDTO);

    UnifyResult updateRole(SysRoleDTO sysRoleDTO);

    SysRole findRoleByRoleCode(String roleCode);

    List<SysRole> findRoleListByRoleCode(String roleCode);

    UnifyResult batchDelete(SysRoleDTO sysRoleDTO);

    List<SysRole> allValidRoles();

    SysRole selectById(Long roleId);
}
